﻿package mortal.game.view.fashionOnline.view
{
    import flash.events.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class FashionOnlineIcon extends ActionBaseIcon
    {
        private static var _instance:FashionOnlineIcon;

        public function FashionOnlineIcon()
        {
            super(ResFileConst.FashionOnlineIcon);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this.name = "FashionOnlineIcon";
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this.name = "";
            super.disposeImpl(param1);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            GameManager.instance.popupView(GameController.fashionOnline.view);
            return;
        }// end function

        public static function get instance() : FashionOnlineIcon
        {
            if (!_instance)
            {
                _instance = new FashionOnlineIcon;
            }
            return _instance;
        }// end function

        public static function hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

    }
}
